package com.tairan.chapter.security.web;

public enum ResultStatus {

    SUCCESS(200, "Success"),
    FAILED(-1, "Failed"),
    AUTHORITIES_FAILED(300, "Need Authorities"),
    NEED_AUTHORITIES(000, "Need Authorities"),
    LOGIN_FAILED(400, "Login Failure");

    private final int status;

    private final String message;

    ResultStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
